<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
  created(){
    // 重新获取用户的权限
    if(sessionStorage.getItem('token')){
      this.axios.post('USER_AUTH').then(result => {
        this.$store.dispatch('user/setSidebarList',result.data)
      })
    }
  }
}
</script>
